package com.neusoft.elmboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.service.TokenService;

@RestController
@RequestMapping("/Tokens")
public class TokenController {
	
	@Autowired
	private TokenService tokenService;
		@GetMapping("/publicKeyStr/{publicKeyStr}")
	public String getTokenByPublicKey(@PathVariable String publicKeyStr) {
		return tokenService.getToken(publicKeyStr);	}
}
